package com.eleme.cart.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 添加购物车条目DTO
 */
@Data
public class CartAddDTO {
    @NotBlank(message = "用户ID不能为空")
    private String userId;
    @NotBlank(message = "食品ID不能为空")
    private String foodId;
    @NotBlank(message = "食品名称不能为空")
    private String foodName;
    @NotNull(message = "数量不能为空")
    private Integer quantity;
    @NotBlank(message = "商家ID不能为空")
    private String businessId;
} 